package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.ProductCategoryMapper;
import com.hcb.micro.dto.ProductCategory;
import com.hcb.micro.service.IProductCategoryService;

@Service("ProductCategoryService")
public class ProductCategoryServiceImpl implements IProductCategoryService {

	@Autowired
	ProductCategoryMapper pcm;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return pcm.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ProductCategory record) {
		return pcm.insert(record);
	}

	@Override
	public int insertSelective(ProductCategory record) {
		return pcm.insertSelective(record);
	}

	@Override
	public ProductCategory selectByPrimaryKey(Integer id) {
		return pcm.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(ProductCategory record) {
		return pcm.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ProductCategory record) {
		return pcm.updateByPrimaryKey(record);
	}

	@Override
	public List<ProductCategory> selectAllByPara(Map<String, Object> para) {
		return pcm.selectAllByPara(para);
	}

}
